home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
t_sys5
/
unixcpio.gz
/
unixnet.cpio
/
myopen.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-11
|
327b
|
21 lines
/*
* Quick kludge to set file buffer size for stdio...
* 2-20-89, 17:05 -- hyc
*/
#include <stdio.h>
FILE *myopen(name,mode)
char *name, *mode;
{
FILE *fp;
char *buf, *malloc();
int size=30720;
fp = fopen(name,mode);
if (fp != NULL) {
if ((buf=malloc(size)) != NULL)
setbuffer(fp, buf, size);
}
return(fp);
}